package edu.kjxy.worker0312;

import java.util.Scanner;

public class worker02 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = 30;
		int t1 = 0, t2 = 1;
		
		System.out.println("打印斐波那契数列的前"+ n + "个数:");
		System.out.print(t1 + " " + t2);
		for(int i = 3; i <= n; i++) {
			int t3 = t1 + t2;
			System.out.print(" " + t3);
			
			t1 = t2;
			t2 = t3;
		}
		in.close();
		
		
	}

}
